package com.rongma.waterdrop.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.widget.Toast;

import com.rongma.waterdrop.manager.bmobmanager.UserManager;

public class AlarmReceiver extends BroadcastReceiver {
    public static final String ALARM_RECEIVER_ACTION = "com.rongma.waterdrop.AlarmReceiver";
    public AlarmReceiver() {
    }

    @Override
    public void onReceive(Context context, Intent intent)
    {
        String action = intent.getAction();
        if(ALARM_RECEIVER_ACTION.equals(action))
        {
            Log.e("rongma","日期变化了!");
            UserManager.getManager(context).changeNPCScore(context);
        }
    }
}
